package com.fable.dal.mapper.ext;

import com.fable.dal.condition.AdminUserQueryCondition;
import com.fable.dal.dto.AdminUserDTO;
import com.fable.dal.mapper.AdminUserMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * MyBatis Ext Mapper for AdminUser.
 */
public interface AdminUserExtMapper extends AdminUserMapper {

    /**
     * 根据id获取
     * @param id
     * @return
     */
    AdminUserDTO findAdminUserDTOById(Integer id);

    /**
     * 登陆
     * @param login
     * @param password
     * @return
     */
    AdminUserDTO findAdminUserDTOByLogin(@Param("login")String login,@Param("password")String password);

    List<AdminUserDTO> findByCondition(AdminUserQueryCondition condition);

}